package com.ihelin.insurance.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ihelin.insurance.dao.AdminUserDao;
import com.ihelin.insurance.entity.AdminUser;
import org.springframework.stereotype.Service;

/**
 * 管理员
 *
 * @author iHelin ihelin@outlook.com
 * @since 2021-02-27 14:29:31
 */
@Service
public class AdminService extends ServiceImpl<AdminUserDao, AdminUser> {

    public AdminUser loadUserByUsername(String username) {
        return this.getOne(new QueryWrapper<AdminUser>().eq("username", username));
    }
}

